package top.jacktgq.sxt.bio.ChatRoom.version6.utils;
import java.io.Closeable;
import java.io.IOException;

/**
 * @Author CandyWall
 * @Date 2019/10/22--20:16
 * @Description 工具类：管理资源
 */
public class ResourceUtils {
    public static void close(Closeable... targets) {
        for (Closeable target : targets) {
            try {
                if (target != null) {
                    target.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
